<?php
$urlParts = parse_url($this->url);
$path = array_values(array_filter(explode('/', $urlParts['path'])));
$id = $path[0];
?>

<?php echo $this->doctype('XHTML1_STRICT'); ?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<?php 
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
                 ->appendHttpEquiv('Content-Language', 'en-US');             
?>
                 
<style>

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}
</style>

<script type="text/javascript">

function onShow(msg) {
    // do nothing
}

function onHide(msg ) {
    // do nothing
}

$(document).ready(function(){
    
});
</script>

</head>

<body>
    <object id="prezi_<?php echo $id; ?>" name="prezi_<?php echo $id; ?>" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
    <param name="movie" value="http://prezi.com/bin/preziloader.swf"/>
    <param name="allowfullscreen" value="true"/>
    <param name="allowscriptaccess" value="always"/>
    <param name="autoplay" value="autostart"/>
    <param name="bgcolor" value="#<?php echo $this->bgColor; ?>"/>
    <param name="flashvars" value="prezi_id=<?php echo $id; ?>&amp;lock_to_path=0&amp;color=<?php echo $this->bgColor; ?>&amp;autoplay=autostart&amp;fullscreen=no&amp;autohide_ctrls=1"/>
    <embed id="preziEmbed_<?php echo $id; ?>" 
           name="preziEmbed_<?php echo $id; ?>"
           src="http://prezi.com/bin/preziloader.swf" 
           type="application/x-shockwave-flash" 
           allowfullscreen="true" 
           allowscriptaccess="always" 
           width="100%" 
           height="100%" 
           wmode="transparent"
           autoplay="autostart" 
           bgcolor="#<?php echo $this->bgColor; ?>" 
           flashvars="prezi_id=<?php echo $id; ?>&amp;lock_to_path=0&amp;color=<?php echo $this->bgColor; ?>&amp;autoplay=autostart&amp;fullscreen=no&amp;autohide_ctrls=1"/>
    </object>
</body>
</html>